/*
 * Copyright 2008-2023 dexian.vip. All rights reserved.
 * Support: http://www.dexian.vip
 * License: http://www.dexian.vip/license
 */

package vip.dexian.admin.command;

import vip.dexian.admin.enums.GenderEnum;
import vip.dexian.core.base.command.BaseCommand;
import jakarta.validation.constraints.NotNull;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;

import java.io.Serial;

/**
 * 个人信息修改
 *
 * @author 挺好的 2023年06月07日 9:46
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode (callSuper = false)
public class ProfileUpdateCommand extends BaseCommand {

    @Serial
    private static final long serialVersionUID = -4606258884930905645L;

    /**
     * 性别
     */
    @NotNull (message = "性别不能为空")
    private GenderEnum gender;

    /**
     * 头像
     */
    @Length (max = 255, message = "头像的长度不可超过255个字符")
    private String avatar;

}
